/**
 * @param {number} num
 * @return {number}
 * @description 跟走台阶一样 只是多了一些前提条件
 */

var translateNum = function (num) {
    let a = 1
    let b = 1
    while (num != 0) {
        if (num % 100 >= 10 && num % 100 <= 25) {
            b = b + a
            a = b - a
        } else {
            a = b
        }
        num = Math.floor(num / 10)
    }
    return b
};
translateNum(12258)